AppId=`ps -ef |grep java |grep -v "grep"  | awk '{ print $2 }'`
if [ "$AppId" != "" ] ; then
   echo "application runing at" "$AppId"
   kill -9 $AppId
   exit 1
else
   echo "application not exist!!!"
   exit 0
fi